<div class='span12'>
	
	<?php $options=array('type' => 'file','class' => 'form-horizontal','action'=>'',
			'inputDefaults' => array(
			    'format' => array('before', 'label', 'between', 'input', 'error', 'after'),
			    'div' => array('class' => 'control-group'),
			    'label' => array('class' => 'control-label'),
			    'between' => '<div class="controls">',
			    'after' => '</div>',
			    'error' => array('attributes' => array('wrap' => 'span', 'class' => 'help-inline')),
			))?>
	<h1><?php echo $this->Html->link(__($page_title), '/'); ?></h1>
	<?php echo $this->Form->create('Events',$options); ?>
	<?php echo $this->Form->input('name',array( 'label' => array( 'text' => __('Nombre:'),'class' => 'control-label'))); ?>
	<?php echo $this->Form->input('status', array(
					'options' => array('AC' => 'Activo' , 'D' => 'Inactivo'),
					'label' => array( 'text' => __('Estado:'),'class' => 'control-label' )
					)
				     );?>
	
	<!-- Type of event -->
	<?php
	$optionsCategories = array();
	
	foreach($categories as $c)
	{$optionsCategories[$c['EventsCategories']['id']] = $c['EventsCategories']['name'];}
	
	echo $this->Form->input('catcategories_id', array(
					'options' => array($optionsCategories),
					'label' => array( 'text' => __('Categoría:'),'class' => 'control-label' )
					)
				     );?>

	<?php echo $this->Form->end('Guardar'); ?>
</div>	